package com.turing.post.organization.util;

import java.util.HashMap;

public class OrganRespCode {
	private final static HashMap<String, String> _msgmap = new HashMap<String, String>();

	/**
	 * 初始化_msgmap,在本类第一次被加载之后
	 */
	static {
		_msgmap.put(OrganRespCode.RC_ARGS_NULL, "参数为NULL!");
		_msgmap.put(OrganRespCode.BRANCHNO_EXIST, "编号已经存在!");
		_msgmap.put(OrganRespCode.OPERID_OPERBRANCHNO_NOTEXIST, "用户所在机构编号不存在!");
		_msgmap.put(OrganRespCode.ISSUE_INSERT_UPDATE, "机构管理");
		_msgmap.put(OrganRespCode.TERMINAL_INSERT_UPDATE, "终端管理");
		_msgmap.put(OrganRespCode.MERCHANTFEEPOLICY_INSERT_UPDATE, "MerchantFeeSettlementPolicy");
		
	}

	/**
	 * 根据响应码查询响应信息
	 * 
	 * @param respCode
	 *            响应码
	 * @return 响应信息
	 */
	public static String getRespCodeMessage(String respCode) {
		String msg = _msgmap.get(respCode);
		return (msg == null) ? respCode : msg;
	}

	/**
	 * 参数为NULL
	 */
	public final static String RC_ARGS_NULL = "RC_ARGS_NULL";

	/**
	 * 机构号已经存在
	 */
	public final static String BRANCHNO_EXIST = "BRANCHNO_EXIST";

	/**
	 * 发卡商以及机构管理
	 */
	public final static String ISSUE_INSERT_UPDATE = "ISSUE_INSERT_UPDATE";

	/**
	 * 终端管理
	 */
	public final static String TERMINAL_INSERT_UPDATE = "TERMINAL_INSERT_UPDATE";
	
	/**
	 * 终端管理
	 */
	public final static String MERCHANTFEEPOLICY_INSERT_UPDATE = "MERCHANTFEEPOLICY_INSERT_UPDATE";

	/**
	 * 用户所在机构编号不存在
	 */
	public final static String OPERID_OPERBRANCHNO_NOTEXIST = "OPERID_OPERBRANCHNO_NOTEXIST";

	public final static String CreditLessThanLowLimit = "Credit_LessThan_LowLimit";

}
